package com.example.tests;

import org.testng.Assert;
import org.testng.annotations.Test;

import com.example.fw.Contact;

public class TestContactDeletion extends TestBase {
	
	@Test
	public void testDeleteContact() {
		
		//note that this test works only when there are >1 contacts in the list
		Contact contactToDelete = app.getContactHelper().getFirstContact();	
		app.getContactHelper().removeContact();
		Contact nextContact = app.getContactHelper().getFirstContact();
		Assert.assertNotEquals(contactToDelete, nextContact);
	}

}

